<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">专营店基本信息</div>

  <!-- Table -->
  <table class="table table-condensed">
    <tbody>
      <tr>
        <td class="bg-primary col-md-1">所属区：</td>
        <td><?php echo $storeData['region'] ?></td>
      </tr>
      <tr>
        <td class="bg-primary col-md-1">专营店：</td>
        <td><?php echo $storeData['storeName'] ?></td>
      </tr>
      <tr>
        <td class="bg-primary col-md-1">年度额度：</td>
        <td><?php echo $procData['yearMoney'] ?></td>
      </tr>
    </tbody>
  </table>
</div>
<table class="table table-condensed table-bordered mb27">
  <tbody>
    <tr>
      <td class="bg-primary col-md-3">双月申报查看</td>
    </tr>
  </tbody>
</table>
<?php foreach ($itemList as $timeUnit => $list): ?>
<table class="table table-condensed table-bordered" style="margin-bottom: 5px;">
  <tbody>
    <tr>
      <td class="bg-primary col-md-3"><?=isset($timeUnitList[$timeUnit]) ? $timeUnitList[$timeUnit]['year'].'年'.$timeUnitList[$timeUnit]['name'] : ''?></td>
    </tr>
  </tbody>
</table>
<table class="table table-condensed table-bordered mb27">
  <thead class="text-center">
      <tr>
        <td class="bg-primary text-center">投放编号</td>
        <td class="bg-primary text-center">投放类型</td>
        <td class="bg-primary text-center">投放规格</td>
        <td class="bg-primary text-center">地址</td>
        <td class="bg-primary text-center">合同时间</td>
        <td class="bg-primary text-center">合同金额</td>
        <td class="bg-primary text-center">自证照片</td>
        <td class="bg-primary text-center">审核结果</td>
        <td class="bg-primary text-center">审核意见</td>
      </tr>
    </thead>
  <tbody class="text-center">
  <?php foreach ($list as $k => $v): ?>
    <tr>
      <td><?=$v['projectData']['id']?></td>
      <td><?=$v['projectData']['mediaTypeStr']?></td>
      <td><?=$v['projectData']['mediaSize']?></td>
      <td><?=$v['projectData']['address']?></td>
      <td><?=$v['projectData']['contractStart']?>--<?=$v['projectData']['contractEnd']?></td>
      <td><?=$v['projectData']['applyMoney']?></td>
      <td>
        <?php if ($v['voucher']): ?>
        <a type="button" onclick="showJsonPhotos('<?=printUrl('SpreadSettle','storeItemPhotos', array('itemId'=>$v['id']))?>')" class="btn btn-default" aria-label="Left Align" role="button">
                查看
              </a>
        <?php endif ?>
      </td>
      <td><?=$v['auditRsStr']?></td>
      <td><?=$v['auditRemark']?></td>
    </tr>
  <?php endforeach ?>
  </tbody>
</table>
<?php endforeach ?>
<div class="text-center">
<button class="btn btn-default btn-primary" type="button" onclick="window.location.href='<?=$breadcrumb[count($breadcrumb)-2]['url']?>'">返回</button>
</div>
<?php $this->load->view('common/auditList', $this->viewData); ?>
<?php $this->load->view('common/foot');?>